package com.example.hidesms.dto;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class BlockSmsItem {
	
	private int SmsId;
	private String name;
	private String number;
	private byte[] image;
	public int getSmsId() {
		return SmsId;
	}
	public void setSmsId(int smsId) {
		SmsId = smsId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public byte[] getImage() {
		return image;
	}
	public void setImage(byte[] image) {
		this.image = image;
	}
	public Bitmap getBitmapImage(){
		Bitmap bitmap = null;
		if (image != null) {
		    bitmap = BitmapFactory.decodeByteArray(image, 0, image.length);
		}
		 
		return bitmap;
	}
	

}
